export enum RequestMethodEnum {
    GET = 'GET',
    POST = 'POST',
    PUT = 'PUT',
    DELETE = 'DELETE'
}


export enum ContentTypeEnum {
    JSON = 'application/json;charset=UTF-8',
    FORM_DATA = 'multipart/form-data;charset=UTF-8',
    FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
    TEXT_EVENT_STREAM = 'text/event-stream',
}


// 请求状态码
export enum RequestCodeEnum {
    // 成功
    SUCCESS = 1,
    // 错误
    ERROR = 0,
    // 未授权
    UNAUTHORIZED = 401,
    // 禁止访问
    FORBIDDEN = 403,
    // 未找到
    NOT_FOUND = 404,
    // 方法不允许
    METHOD_NOT_ALLOWED = 405,
    // 不可接受
    NOT_ACCEPTABLE = 406,
}
